<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>首页</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <%@ include file="../include/css.jsp" %>

</head>
<body class="hold-transition skin-blue sidebar-mini">
<!-- 右侧内容部分 -->
<div class="container">
    <!-- Main content -->
    <section class="content">

        <div class="box">
            <div class="box-body no-padding">
                <div class="box-tools pull-right">
                    <button type="button" class="btn btn-box-tool" id="backBtn">
                        <i class="fa fa-plus"></i> 返回列表
                    </button>
                </div>
                <table class="table text-nowrap table-striped table-hover table-condensed table-condensed">
                    <tr>
                        <td class="td_title">名称</td>
                        <td class="td_title">类型</td>
                        <td class="td_title">图标</td>
                        <td class="td_title">运行时环境</td>
                        <td class="td_title">关键字</td>
                        <td class="td_title">描述</td>
                        <td class="td_title">创建时间</td>
                        <td class="td_title">文件路径</td>
                    </tr>
                    <tr>
                        <td>${plugin.name}</td>
                        <td>${plugin.type}</td>
                        <td><img src="http://127.0.0.1/pictures?picturePath=${plugin.sign}" style="height: 20px; width:20px"></td>
                        <td>${plugin.runtimeEnvironment}</td>
                        <td>${plugin.keyword}</td>
                        <td>${plugin.describe}</td>
                        <td><fmt:formatDate value="${plugin.createTime}" pattern="yyyy年MM月dd日"></fmt:formatDate></td>
                        <td>${plugin.filePath}</td>
                    </tr>
                </table>
                <h3 class="box-title">关联用户</h3>
                <table class="table text-nowrap table-striped table-hover table-condensed table-condensed">
                    <tr>
                        <td class="td_title">姓名</td>
                        <td>${plugin.user.name}</td>

                        <td class="td_title">手机号</td>
                        <td>${plugin.user.mobile}</td>

                        <td class="td_title">权限</td>
                        <td>${plugin.user.permissions}</td>

                        <td class="td_title">创建时间</td>
                        <td><fmt:formatDate value="${plugin.user.createTime}" pattern="yyyy年MM月dd日"></fmt:formatDate></td>
                    </tr>
                </table>
            </div>
        </div>

        <%--<div class="box-footer no-padding">
            <div class="col-md-8">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">跟进记录</h3>
                        <!-- <div>
                            <a>关联</a>
                        </div> -->
                    </div>
                    <div class="box-body"></div>
                </div>
            </div>
        </div>--%>

    </section>
    <!-- /.content -->
</div>


<script
        src="https://code.jquery.com/jquery-2.2.4.min.js"
        integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
        crossorigin="anonymous"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<%@ include file="../include/js.jsp"%>
<script>
    $(function () {
        $("#backBtn").click(function () {
            window.location.href="/plugin/all"
        })
    })
</script>
</body>
</html>